import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from '@/views/profile/login'
import UserLogin from '@/views/profile/userLogin'
import SingIn from "@/views/profile/SingIn";
import NoteMain from '@/views/main/noteMain'
import ReturnURL from '@/views/AliPay/returnUrlView'
import ChangePassword from '@/views/profile/changePassword'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: NoteMain,
    component: NoteMain
  },
  // {
  //   path: '/login',
  //   name: Login,
  //   component: Login,
  // },
  {
    path: '/singIn',
    name: SingIn,
    component: SingIn
  },
  {
    path: '/return_url',
    name: ReturnURL,
    component: ReturnURL
  },
  {
    path: "/changePassword",
    name: ChangePassword,
    component: ChangePassword
  },
  {
    path: "/login",
    name: UserLogin,
    component: UserLogin
  }
]


const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
